const Sequelize = require("sequelize");
const db = require('../DBConfig/config');

const TouristPlaceDetail = db.define('tourist_place_detail', {
    id: {
        type: Sequelize.INTEGER(11),
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
    },
    tourist_place_id: {
        type: Sequelize.INTEGER(11),
    },
    banner: {
        type: Sequelize.TEXT,
    },
    address: {
        type: Sequelize.STRING(255),
    },
    first_time: {
        type: Sequelize.DATE,
    },
    second_time: {
        type: Sequelize.DATE,
    },
    travel_detail: {
        type: Sequelize.TEXT
    }
}, {
    freezeTableName: true,
    timestamps: false
})

module.exports = TouristPlaceDetail;